package top.caoayu.base.mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import top.caoayu.base.entity.SysRole;

import java.util.List;

public interface SysRoleMapper extends com.baomidou.mybatisplus.core.mapper.BaseMapper<SysRole> {
    SysRole selectById(@Param("id") Long id);


    List<SysRole> selectAllRolePrivilege();

    List<SysRole> selectRoleByUserId(@Param("userId") Long id);
}